package shuffle;

public class Solution {
    public int[] shuffle(int[] nums, int n) {
        int[] ans = new int[nums.length];
        for (int i = 0; i < n; i+=2) {
            ans[i] = nums[i];
            ans[i+2] = nums[i+n];
        }
        return ans;
    }
}
